<template>
    <view class="container">
        <image-eraser :imageSrc="'/static/111.jpeg'" :width="300" :height="400" @complete="handleComplete" />
    </view>
</template>

<script>
import ImageEraser from '@/components/eraser.vue'
export default {
	components: {
		ImageEraser,
	},
    methods: {
        handleComplete(tempFilePath) {
            uni.previewImage({
                urls: [tempFilePath]
            })
        }
    }
}
</script>